<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import HomePage from './views/HomePage/index.vue'
import router from './router';
import { ref, nextTick, provide, watch } from 'vue';


let refreshShow = ref(true)
const reload = () => {
  refreshShow.value = false
  nextTick(() => {
    refreshShow.value = true
  })
}
provide('reload', reload)
// 监听当前路由
// watch(
//   () => router.currentRoute.value,
//   (asideIndex: any, refreshShow: any) => {
//     asideIndex = route.query.id
//     console.log('asideIndex', asideIndex)
//     // reload()
//   },
//   { immediate: true }
// )
// console.log(route);
</script>

<template>
  <RouterView v-if="refreshShow" />
</template>

<style scoped></style>
